﻿using Autofac;
using CommonServiceLocator;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Navigation;
using System.Windows.Shapes;
using VisionApp.Interface;
using VisionAppManager.Model;
using VisionAppManager.ViewModel;

namespace VisionAppManager.View
{
    /// <summary>
    /// UCImgViewerCam1.xaml 的交互逻辑
    /// </summary>
    public partial class UCImgViewerCam2 : UserControl
    {
        public UCImgViewerCam2()
        {
            InitializeComponent();
            updateView();
        }
        private void updateView()
        {
            Worker wk = (Worker)AppEngine.Container.Resolve<IWorker>();
            wk.UpdateImageRHandle(PictureBoxImageRight.Child as System.Windows.Forms.PictureBox);
        }
        //private void GroupBox_MouseDoubleClick(object sender, MouseButtonEventArgs e)
        //{
        //    ServiceLocator.Current.GetInstance<MainViewModel>().VMWorkspace = ServiceLocator.Current.GetInstance<VMImgViewer>();
        //}
    }
}
